package com.csun.cmny.provider.device.phone.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-19 10:07
 * @Description: the class phone message data entity
 */
@Data
public class PhoneMessageDataEntity implements Serializable {

    private static final long serialVersionUID = -2191640411484155221L;

    private byte head = (byte) 0xad;

    private byte dtype = (byte) 0xcc;

    // 数据(data)长度
    private short dsize;

    // 长度=dsize 数据(data) 格式: 消息类型(1byte)+ 消息内容
    private byte[] data;

    private byte end1 = (byte) 0x0d;

    private byte end2 = (byte) 0x0a;
}
